package cn.tedu.knows.faq.service;


import cn.tedu.knows.commons.model.Answer;
import cn.tedu.knows.faq.vo.AnswerVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author tedu.cn
 * @since 2021-05-25
 */
public interface IAnswerService extends IService<Answer> {

    //新增讲师回复业务
    //这个方法的返回值是新增成功的Answer对象
    Answer saveAnswer(AnswerVo answerVo, String username);

    //根据问题id查询所以回答
    List<Answer> getAnswersByQuestionId(Integer questionId);

    boolean accept(Integer answerId);


}
